package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizSalesExecutionMapper;
import com.ruoyi.system.domain.BizSalesExecution;
import com.ruoyi.system.service.IBizSalesExecutionService;
import com.ruoyi.common.core.text.Convert;

/**
 * 销售执行记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
@Service
public class BizSalesExecutionServiceImpl implements IBizSalesExecutionService 
{
    @Autowired
    private BizSalesExecutionMapper bizSalesExecutionMapper;

    /**
     * 查询销售执行记录
     * 
     * @param executionId 销售执行记录主键
     * @return 销售执行记录
     */
    @Override
    public BizSalesExecution selectBizSalesExecutionByExecutionId(Long executionId)
    {
        return bizSalesExecutionMapper.selectBizSalesExecutionByExecutionId(executionId);
    }

    /**
     * 查询销售执行记录列表
     * 
     * @param bizSalesExecution 销售执行记录
     * @return 销售执行记录
     */
    @Override
    public List<BizSalesExecution> selectBizSalesExecutionList(BizSalesExecution bizSalesExecution)
    {
        return bizSalesExecutionMapper.selectBizSalesExecutionList(bizSalesExecution);
    }

    /**
     * 新增销售执行记录
     * 
     * @param bizSalesExecution 销售执行记录
     * @return 结果
     */
    @Override
    public int insertBizSalesExecution(BizSalesExecution bizSalesExecution)
    {
        return bizSalesExecutionMapper.insertBizSalesExecution(bizSalesExecution);
    }

    /**
     * 修改销售执行记录
     * 
     * @param bizSalesExecution 销售执行记录
     * @return 结果
     */
    @Override
    public int updateBizSalesExecution(BizSalesExecution bizSalesExecution)
    {
        return bizSalesExecutionMapper.updateBizSalesExecution(bizSalesExecution);
    }

    /**
     * 批量删除销售执行记录
     * 
     * @param executionIds 需要删除的销售执行记录主键
     * @return 结果
     */
    @Override
    public int deleteBizSalesExecutionByExecutionIds(String executionIds)
    {
        return bizSalesExecutionMapper.deleteBizSalesExecutionByExecutionIds(Convert.toStrArray(executionIds));
    }

    /**
     * 删除销售执行记录信息
     * 
     * @param executionId 销售执行记录主键
     * @return 结果
     */
    @Override
    public int deleteBizSalesExecutionByExecutionId(Long executionId)
    {
        return bizSalesExecutionMapper.deleteBizSalesExecutionByExecutionId(executionId);
    }
}
